package DesignPatern.A11_装饰者模式.A02_抽象模式;

/**
 * @Author: Du
 * @Date: 2021/7/30 15:44
 *
 * 抽象的装饰者
 */
public class Decorator extends Component
{
    private Component component = null;
    
    public Decorator(Component component)
    {
        this.component = component;
    }
    
    //原来的基础逻辑
    @Override
    public void operate()
    {
        this.component.operate();
    }
}
